﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace program
{
    public partial class Setting : Form
    {
        print myForm;

        public Setting(print tmp)
        {
            InitializeComponent();
            myForm = tmp;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            myForm.leftMargin = textBox2.Text;
            myForm.rightMargin = textBox3.Text;
            myForm.topMargin= textBox1.Text;
            myForm.downMargin = textBox4.Text;
            this.Close();
        }
    }
}
